//
//  LBTagCollectionCell.h
//  app
//
//  Created by 刘文扬 on 16/11/30.
//  Copyright © 2016年 广东联结电子商务有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LBTagCollectionCell : UICollectionViewCell

/** 内容距离两端的空隙 默认5*/
@property(nonatomic,assign)CGFloat leftAndRightMargin;

/** 标签背景颜色*/
@property(nonatomic,strong)UIColor *itemBackgroundColor;

/** 背景被拉伸需要设置的参数*/
@property(nonatomic,assign)UIEdgeInsets imageEdgeInsets;

/** 背景图,默认是空的*/
@property(nonatomic,strong)UIImage *lb_backgroundImage;

/** 背景图,选择背景图*/
@property(nonatomic,strong)UIImage *lb_selectedBackgroundImage;

/** 字体大小 默认12*/
@property(nonatomic,strong)UIFont *textFont;

/** 字体颜色 默认黑色*/
@property(nonatomic,strong)UIColor *textColor;

/** 字体颜色 默认黑色*/
@property(nonatomic,strong)UIColor *selectTextColor;

/** 是否有标签的间隔线 默认没有*/
@property(nonatomic,assign)BOOL haveGapLine;

//默认是0,如果设置这个值不为0,那么就不会根据字体大小计算每个cell的高度.
@property(nonatomic,assign)CGFloat itemHeight;

+(CGSize)sizeForItem:(id)data indexPath:(NSIndexPath *)indexPath totalListNumber:(NSInteger)totalListNumber leftAndRightMargin:(NSInteger)leftAndRightMargin textFont:(UIFont *)textFont itemHeight:(CGFloat)itemHeight;
-(void)configCellWithData:(id)data atIndexPath:(NSIndexPath *)indexPath totalListNumber:(NSInteger)totalListNumber;

@end
